package com.yx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yx.entity.Order;
import org.apache.ibatis.annotations.Param;

/**
 * @Classname OrderMapper
 * @Date 2021/07/20 19:05
 * @Author by yx
 * @Description TODO:
 */
public interface OrderMapper extends BaseMapper<Order> {
    void insertOrder(@Param("order") Order order, @Param("tableIndex") Integer tableIndex);

    Order getOrderByOid(@Param("oid") String oid,@Param("tableIndex") Integer tableIndex);

    void updateOrderStatus(@Param("oid") String oid, @Param("status") Integer status,@Param("tableIndex") Integer tableIndex);
}
